package day04;

public class ArrayTest {
	public static void main(String[] args) {
		int [] [] p={
				{12,34,18,54,69},
				{26,18,76,49,50},
				{83,52,17,90,15},
				{55,62,46,91,37},
				{93,46,43,73,69}
		};
		
		System.out.println("原矩阵为：");
		for(int i=0; i<p.length;i++ ){
			for(int j=0; j<p[i].length; j++){
				System.out.print(p[i][j] +" ");
			}	
			System.out.println();
		}
		for(int i=0; i<p.length; i++){
			for(int j=0; j<i; j++){
				int temp=p[i][j];
				p[i][j]=p[j][i];
				p[j][i]=temp;
			}			
		}
		System.out.println("转换后的值是：");
		for(int i=0; i<p.length; i++){
			for(int j=0; j<p[i].length; j++){
				System.out.print(p[i][j]+" ");
			}System.out.println();
		}
	}
}
